Page({

    // 加载
    onLoad(options) {
        // 授权登录后获取
        wx.getUserInfo({
            withCredentials: false,
            lang: 'zh_CN',
            success: (result)=>{
                console.log(result)
            },
            fail: ()=>{},
            complete: ()=>{}
        })

        // 小程序帐号信息
        const accInfo = wx.getAccountInfoSync()
        console.log(accInfo)
    }
})